<?php
//print_r($listallreadypica);
//print_r($listpgraph);
//print_r($listmodelingassgined);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/text.css" />
<link rel="stylesheet" href="css/960_24_col.css" />
 <link rel="stylesheet" href="css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="css/style.css" />
 <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
</head>

<body>
	<div class="principal container_24 listclient">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage">LOGO</div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22 ">
				description
			</div>
			
			<div class="grid_24 listcontent detail">
				<h1>List des  Taches </h1>
				
				<div class="grid_24 top">
					
				</div>
			
					
			<div class="grid_24 detaillist datagrid">
			<h2>photoshow Picassa Ready</h2>
				<table>
				
				<thead><tr><th>VENDEUR</th><th>NOM<BR/>COMPAGNIE</th><th>ADRESSE</th><th>TELEPHONE</th><th>VILLE</th><th>COMMENTAIRE<br>PHOTOGRAPH</th><th>PHOTOGRAPH</th><th>FORFAIT</th><th>ACTION</th></thead>
				<tbody>
				
				<?php 
				$color=1;
				foreach ($listallreadypica as $lc){ 
				?>
				<tr class="<?php if($color%2==0) echo "paire"; else echo "impaire";?>">
				<td><?php echo $lc["username"]?>	</td>
				<td><?php echo $lc["companyname"]?>	</td>
				<td><?php echo $lc["address"]?></td><td><?php echo $lc["tele"]?></td><td><?php echo $lc["city"]?></td>
				<td><?php echo $lc["comentaire_pgraph"]?></td>
				<td>
				<?php
				if(array_key_exists($lc["idpgraph"], $listpgraph) )
				{
					echo $listpgraph[$lc["idpgraph"]]; 
				}else 
				{
					echo "";
				}
					?>
				</td>
				<td><?php echo $lc["forfaitname"]."-".$lc["prix"]?></td>
				<td>
					<form action="index.php?gmodeling/actionsgetmodeling" method="post">
							<input type="hidden" name ="idshooting" value="<?php echo $lc["idshooting"]?>"/>
							<input type="submit" name="assign" value="Get Modeling">
					</form>
					
					</td>	
				
				</tr>
					
				<?php
				 	$color++;
					}
				 ?>
				</tbody>
			</table>
			</div>
			
	
	
			<div class="grid_24 detaillist datagrid">
			<h2>Modeling Assigned</h2>
				<table>
				
				<thead><tr><th>COSTUME INFO</th><th>PHOTOGRAPH INFO</th><th>GOOGLEPLUS</th><th>POI</th><th>MODELING<br/>COMMENTAIRE</th><th>FORFAIT</th><th>MODELING</br>STATUS</th><th>ACTION</th></thead>
				<tbody>
				
				<?php 
				$color=1;
				foreach ($listmodelingassgined as $lc){ 
				?>
				<tr class="<?php if($color%2==0) echo "paire"; else echo "impaire";?>">
				<td>
				<b>Company Name:</b><?php echo $lc["companyname"]?><br/>
				<b>Address:</b><?php echo $lc["address"]?><br/>	
				<b>Tel</b>:<?php echo $lc["tele"]?><br/>
				<b>City</b>:<?php echo $lc["city"]?></br>
				</td>
				<td><b>Photograph Name:</b><?php
				if(array_key_exists($lc["idpgraph"], $listpgraph) )
				{
					echo $listpgraph[$lc["idpgraph"]]; 
				}else 
				{
					echo "";
				}
					?><br/>
				<b>Commentaire:</b><?php echo $lc["comentaire_pgraph"]?>	
				</td>
				<td><?php echo $lc["googleplus"]?></td>
				<td><?php echo $lc["poi"]?></td>
				<td><?php echo $lc["modeling_commentaire"]?></td>
				<td><?php echo $lc["forfaitname"]."-".$lc["prix"]?></td>
				<td><?php echo $lc["modelingstatus"];?></td>
				<td>
					<form action="index.php?gmodeling/getmcontent" method="post">
						<input type="hidden" name="idmodeling" value="<?php echo $lc["idmodeling"]; ?>"/>
							<input type="hidden" name="role" value="model"/>
						<input type="submit" name="assign" value="Edit your job">
					</form>
					
					</td>	
				
				</tr>
					
				<?php
				 	$color++;
					}
				 ?>
				</tbody>
			</table>
			</div>	
			
			
				<div class="grid_24 detaillist datagrid">
			<h2>Modeling Published</h2>
				<table>
				
				<thead><tr><th>COSTUME INFO</th><th>PHOTOGRAPH INFO</th><th>GOOGLEPLUS</th><th>POI</th><th>URL VISITE</th><th>EMBEDDED</th><th>FACEBOOK</th><th>MODELING<br/>COMMENTAIRE</th><th>FORFAIT</th><th>MODELING</br>STATUS</th><th>INFORMATIONS</th></thead>
				<tbody>
				
				<?php 
				$color=1;
				foreach ($allmodelingfinished as $lc){ 
				?>
				<tr class="<?php if($color%2==0) echo "paire"; else echo "impaire";?>">
				<td><b>Company Name:</b><?php echo $lc["companyname"]?><br/>
					<b>Address:</b><?php echo $lc["address"]?><br/>
					<b>Tel:</b><?php echo $lc["tele"]?><br/>
					<b>City:</b><?php echo $lc["city"]?><br/>
				</td>
				<td>
				<b>Photograph Name:</b>
				<?php
				if(array_key_exists($lc["idpgraph"], $listpgraph) )
				{
					echo $listpgraph[$lc["idpgraph"]]; 
				}else 
				{
					echo "";
				}
					?><br/>
				<b>Commentaire:</b><?php echo $lc["comentaire_pgraph"]?>
				</td>
				
				<td><?php echo $lc["googleplus"]?></td>
				<td><?php echo $lc["poi"]?></td>
				<td><?php echo $lc["urlvisite"]?></td>
				<td><?php echo $lc["moderation"]?></td>
				<td><?php echo $lc["facebook"]?></td>
				<td><?php echo $lc["modeling_commentaire"]?></td>
				</td>
				<td><?php echo $lc["forfaitname"]."-".$lc["prix"]?></td>
				<td><?php echo $lc["modelingstatus"];?></td>
				<td>
					<form action="index.php?gmodeling/getmcontent2" method="post">
						<input type="hidden" name="idmodeling" value="<?php echo $lc["idmodeling"]; ?>"/>
						<input type="hidden" name="role" value="model"/>
						<input type="submit" name="assign" value="Edit your job">
					</form>
					
					</td>	
				
				</tr>
					
				<?php
				 	$color++;
					}
				 ?>
				</tbody>
			</table>
			</div>
			
					
				
		</div>
	</div><!--end principal-->
</body>
</html>